<?php
namespace app\model\user;

use think\Model;

class ZxlKnowStoreUserBaseModel extends Model
{
    protected $name = 'zxl_know_store_user_base';

    /**
     * 获取刷题设置
     * 
     * @return array
     */
    public static function getSelfSetting($user_id)
    {
        $user_base = self::where('user_id', $user_id)->find();
        $self_setting = json_decode($user_base['self_setting'],true);
        return $self_setting;
    }
}